from distutils.core import setup
import py2exe
import matplotlib

setup(
      
      options = {"py2exe" : {"compressed"   : 2,
                             "optimize"    : 2,
                             "bundle_files" : 3,
                             "xref"         : False,
                             "skip_archive" : False,
                             "ascii"        : False,
                             "dll_excludes": ["MSVCP90.dll"],
                           }
      },
      
      data_files=matplotlib.get_py2exe_datafiles(),
      
      windows = [{'script' : 'main.py'}]
)